package edu.udel.mboch.towerdefense;

public class BattleTDState extends TDState
{	
	private static final long serialVersionUID = -3684312732536826217L;
	private Player player;
	private Player player2;
	
	public BattleTDState(Grid grid, Player player, Player player2)
	{
		super(grid);
		this.player = player;
		this.player2 = player2;
	}
	
	public Player getPlayer()
	{
		return player;
	}
	
	public Player getPlayer2()
	{
		return player2;
	}
	
	public BattleGrid getGrid()
	{
		return (BattleGrid)grid;
	}

	public void print()
	{
		grid.print();
		player.print();
		player2.print();
		System.out.println("Wave: " + waves.getWaveNumber());
		System.out.println(player.getTowers().size() + " " + player2.getTowers().size() + '\n' + ((BattleAIPlayer)player).getSpawnedMobs() + " " + ((BattleAIPlayer)player2).getSpawnedMobs());
		
	}

	public BattleTDState copy()
	{
		return new BattleTDState(grid.copy(), player.copy(), player2.copy());
	}

}
